﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Tilver.Common
{
    /// <summary>
    /// 日志接口
    /// </summary>
    public interface ILogger
    {
        /// <summary>
        /// 记录日志
        /// 只记录message.ToString()信息，如果需要记录Message对象的详细信息请使用Write<T>(T message)方法
        /// </summary>
        /// <param name="message">消息内容</param>
        void Write(object message);
        /// <summary>
        /// 记录日志
        /// </summary>
        /// <typeparam name="T">消息类型</typeparam>
        /// <param name="message">消息内容</param>
        void Write<T>(T message);
        /// <summary>
        /// 记录异常日志
        /// </summary>
        /// <param name="exception">异常</param>
        void Write(Exception exception);
    }
}
